package com.carlwang.security;

public class Base16Encoder implements BinaryToTextEncoder {
	public static String CLASS_VERSION = "$Id: //product/DAS/version/10.1.2/Java/atg/security/Base16Encoder.java#1 $$Change: 713790 $";
	/*    */
	/* 58 */static final char[] values = { '0', '1', '2', '3', '4', '5', '6',
			'7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };

	/*    */
	/*    */public String encode(byte[] pBytes)
	/*    */{
		/* 68 */StringBuffer sb = new StringBuffer();
		/* 69 */for (int i = 0; i < pBytes.length; ++i) {
			/* 70 */sb.append(values[(pBytes[i] >> 4 & 0xF)]);
			/* 71 */sb.append(values[(pBytes[i] & 0xF)]);
			/*    */}
		/* 73 */return sb.toString();
		/*    */}
}
